home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Reusable Classes_Code / User Interface / MiniPicker / Read Me < prev   
Text File  |  1999-08-30  |  1KB  |  51 lines

  1. MiniPicker Information
  2.  
  3.  
  4.  
  5. Requirements:
  6.  
  7. MiniPicker requires REALbasic 2.1.
  8.  
  9. MiniPicker is offered as freeware on an 'as is' basis. Use it as you like: if you improve it I would really like to know - send me an email at:
  10.  
  11. nick@magmouse.freeserve.co.uk
  12.  
  13.  
  14. Purpose:
  15.  
  16. MiniPicker is intended for use where the system colour picker is too big or too slow, or where you want your picker to be non-modal.
  17.  
  18.  
  19. To Use:
  20.  
  21. You can base your project on the example project supplied, or you can drag the various classes to the desktop, and then into your project. The classes needed are: pointClass and miniPickerClass, and the PICT image pickerPic. Set your canvas to inherit from miniPickerClass, and you are away...
  22.  
  23.  
  24. Interface:
  25.  
  26. MiniPickerClass has two methods:
  27.  
  28. xyVal (theColor as color) as pointClass - this returns the position on the canvas of a particular rgb colour.
  29.  
  30. colorVal (x as integer, y as integer) as color - this returns the colour coresponding to a particular position.
  31.  
  32.  
  33. MiniPickerClass also has two new events:
  34.  
  35. colorChange - this fires as the mouse pointer moves over the picker, so you can take appropriate action. In the demo project this is used to update the little ‘swatch’ showing the current colour.
  36.  
  37. colorChosen - this fires when the mouse is clicked to select a colour. In the demo project this is used to update the little ‘swatch’ showing the selected colour.
  38.  
  39.  
  40.  
  41. Enjoy!
  42.  
  43.  
  44. Nick Hunt
  45.  
  46. nick@magmouse.freeserve.co.uk
  47. www.magmouse.freeserve.co.uk
  48.  
  49. 31/8/99
  50.  
  51.